<template>
  <div class="home">
    <router-view></router-view>
    <van-tabbar route>
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/type" icon="search">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="friends-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/profile" icon="setting-o">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { getBanners } from '@/api'
export default {
  name: 'Home',
  setup() {
    getBanners().then(res => {
      console.log(res);
    })
  }
}
</script>
<style lang="scss" scoped>
</style>
